<ul class="list gallery-list all-galleries">
	{foreach from=$galleries item=gallery key=k name=gallerylist}
	<li{if $smarty.foreach.gallerylist.index%5==0} style="clear:both;"{/if}>
		<a href="{#root#}/gallery/show/{$gallery.id}/{$gallery.title|escape:'url'}"><img src="{#root#}/userfiles/gallery/{$gallery.id}/thumb/{if $gallery.cover.thumbnail|count_characters}{$gallery.cover.thumbnail}{else}{$gallery.cover.src}{/if}" alt="" /></a>
		<br /><strong>{$gallery.title}</strong>
		<br />{$gallery.date|date_format:"%d.%m.%Y"}
		<br />{#images#}: {$gallery.count}
	</li>
	{/foreach}
</ul>

<script type="text/javascript">
ImageGalleryCenterImages();
</script>